﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ECCIT;
using OgilvyOne.UKNow.DALFactory;
using OgilvyOne.UKNow.Model;

namespace OgilvyOne.UKNow.BLL
{
  public  partial class EventCalendarBLL
    {
       public int LanguageID { get; set; }
       public EventCalendarBLL(int langID)
        {
            this.LanguageID = langID;
        }

       public ResultInfo Save(EventCalendarModel info)
       {
           return EventCalendarFactory.Create(LanguageID).Save(info);
       }
      /// <summary>
      /// 查找该活动是否被当前登录用户收藏
      /// </summary>
       /// <param name="info">EventCalendarModel实体</param>
      /// <returns></returns>
       public bool IsExist(EventCalendarModel info)
       {
           return EventCalendarFactory.Create(LanguageID).CheckExist(info);
       }

        /// <summary>
        /// 用户取消收藏活动 2012-5-8 李学明
        /// </summary>
        /// <param name="modelInfo"></param>
        /// <returns></returns>
        public ResultInfo Delete(EventCalendarModel modelInfo)
        {
            return EventCalendarFactory.Create(LanguageID).Delete(modelInfo);
        }
    }
}
